//
//  TradeDetalCell.swift
//  LeGou
//
//  Created by lxm on 2022/8/1.
//

import UIKit

class TradeDetalCell: XMBaseTableViewCell {

    @IBOutlet weak var name: UILabel!
    
    @IBOutlet weak var time: UILabel!
    
    @IBOutlet weak var money: UILabel!
    
    @IBOutlet weak var mark: UILabel!
    
    @IBOutlet weak var rightSub: UILabel!
        
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        rightSub.isHidden = true
        setStyle(s: 1)
    }

    func setStyle(s : Int) {
        if s == 0 {
            time.snp.remakeConstraints { make in
                make.bottom.equalToSuperview().offset(-12)
            }
        } else {
            time.snp.remakeConstraints { make in
                make.bottom.equalTo(mark.snp.top).offset(-8)
            }
        }
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
}
